package com.ruoyi.asset.extermination.service;

import com.ruoyi.asset.extermination.domain.bo.DisinfectionBo;
import com.ruoyi.asset.extermination.domain.bo.DisinfectionStatisticsBo;
import com.ruoyi.asset.extermination.domain.vo.DisinfectionVo;
import com.ruoyi.asset.extermination.domain.vo.ExterminationCommunityCountVo;
import com.ruoyi.asset.extermination.domain.vo.ExterminationWorkStatisticsVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 四害消杀管养
 * @author 12276
 */
public interface IDisinfectionService {

    /**
     * 数据导入
     *
     * @return 返回导入失败数据的行号和错误信息
     */
    List<String> importExcel(String excelUrl);

    /**
     * 删除四害消杀管养
     */
    int deleteExtermination(Set<Long> idsSet);

    /**
     * 查询四害消杀管养
     * @return
     */
    TableDataInfo<DisinfectionVo> queryExtermination(DisinfectionBo searchBo, PageQuery pageQuery);

    /**
     * 导出四害消杀管养
     * @return
     * @param searchBo
     */
    List<DisinfectionVo> exportExtermination(DisinfectionBo searchBo);

    /**
     * 统计四害消杀首页展示数据
     * @return
     */
    DisinfectionStatisticsBo getDisinfectionCount();

    Map getDisinfectionCommunityCount();

    /**
     * 智慧大屏四害消杀左侧
     * @param date 指定日期
     * @return
     */
    List<ExterminationCommunityCountVo> getExterminationCountByCommunity(String date);

    /**
     * 今日统计
     * @param date 指定日期
     * @return
     */
    ExterminationWorkStatisticsVo getExterminationWorkByDate(String date);

    Integer getExterminationByDateAndCommunity(String date,String community);

}
